const query = require('../util/sql')
module.exports = async (ctx, next) => {
	let sql;
	console.log(ctx.request.query)
	
	sql = `select * from news where isDel=0 order by id desc limit 0,6`;
	let data1 = await query(sql)
	
	ctx.state.data = data1
}	